package net.ericaro.neojavagen.expressions ;
import net.ericaro.neojavagen.expressions.MultiplicativeExpression;
import net.ericaro.neojavagen.expressions.AdditiveExpressionRest ;

/**
* *<pre> AdditiveExpression :
    MultiplicativeExpression AdditiveExpressionRest?
</pre>
*/
public class AdditiveExpression   {

MultiplicativeExpression multiplicativeexpression;
AdditiveExpressionRest additiveexpressionrest ;

public AdditiveExpression( MultiplicativeExpression multiplicativeexpression, AdditiveExpressionRest additiveexpressionrest ){
	this.multiplicativeexpression = multiplicativeexpression; this.additiveexpressionrest = additiveexpressionrest ;
	}public AdditiveExpression( MultiplicativeExpression multiplicativeexpression ){
this.multiplicativeexpression = multiplicativeexpression ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( this.multiplicativeexpression ).append(" ");
if (this.additiveexpressionrest !=null ) stringbuilder.append( this.additiveexpressionrest ).append(" ") ;
	return stringbuilder.toString();
}

}
